package com.ruoyi.wb.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 wb_user
 *
 * @author ruoyi
 * @date 2024-10-14
 */
@ApiModel(value = "WbUser", description = "用户实体")
public class WbUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 id */
    @ApiModelProperty(value = "主键 id")
    private Long id;

    /** 系统用户 id */
    @Excel(name = "系统用户 id")
    @ApiModelProperty(value = "系统用户 id")
    private Long sysUserId;

    /** 用户类型 */
    @Excel(name = "用户类型")
    @ApiModelProperty(value = "用户类型")
    private Long roleType;

    /** 用户名 */
    @Excel(name = "用户名")
    @ApiModelProperty(value = "用户名")
    private String userName;

    /** 用户头像 */
    @Excel(name = "用户头像")
    @ApiModelProperty(value = "用户头像")
    private String userPhoto;

    /** 电话号码 */
    @Excel(name = "电话号码")
    @ApiModelProperty(value = "电话号码")
    private String phoneNumber;

    /** 用户密码 */
    @Excel(name = "用户密码")
    @ApiModelProperty(value = "用户密码")
    private String userPassword;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty(value = "${comment}")
    private String openId;

    /** 用户二维码 */
    @Excel(name = "用户二维码")
    @ApiModelProperty(value = "用户二维码")
    private String userQrCodeUrl;

    /** 企业 id */
    @Excel(name = "企业 id")
    @ApiModelProperty(value = "企业 id")
    private Long businessId;

    /** 状态(1 正常，2 停用) */
    @Excel(name = "状态(1 正常，2 停用)")
    @ApiModelProperty(value = "状态(1 正常，2 停用)")
    private Long status;

    /** 是否认证(1 是，2 否) */
    @Excel(name = "是否认证(1 是，2 否)")
    @ApiModelProperty(value = "是否认证(1 是，2 否)")
    private Long isAuth;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setSysUserId(Long sysUserId) {
        this.sysUserId = sysUserId;
    }

    public Long getSysUserId() {
        return sysUserId;
    }

    public void setRoleType(Long roleType) {
        this.roleType = roleType;
    }

    public Long getRoleType() {
        return roleType;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }

    public String getUserPhoto() {
        return userPhoto;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setUserQrCodeUrl(String userQrCodeUrl) {
        this.userQrCodeUrl = userQrCodeUrl;
    }

    public String getUserQrCodeUrl() {
        return userQrCodeUrl;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }

    public Long getBusinessId() {
        return businessId;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public void setIsAuth(Long isAuth) {
        this.isAuth = isAuth;
    }

    public Long getIsAuth() {
        return isAuth;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("sysUserId", getSysUserId())
                .append("roleType", getRoleType())
                .append("userName", getUserName())
                .append("userPhoto", getUserPhoto())
                .append("phoneNumber", getPhoneNumber())
                .append("userPassword", getUserPassword())
                .append("openId", getOpenId())
                .append("userQrCodeUrl", getUserQrCodeUrl())
                .append("businessId", getBusinessId())
                .append("status", getStatus())
                .append("isAuth", getIsAuth())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("remark", getRemark())
                .toString();
    }
}